package org.teameleven.quicken.demo;

import java.math.BigDecimal;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.teameleven.quicken.facade.BankFacade;


public class Main {

	public static void main(String[] args) {
		
		ApplicationContext two = 
	             new ClassPathXmlApplicationContext("hwtwo-context.xml");
		
		BankFacade bank = (BankFacade) two.getBean("bank");
		
		bank.getCheckingAccountBalance();
		bank.getEdtradeAccountBalance();
		bank.getSavingAccountBalance();
		
		bank.displayBalances();
		bank.makeDeposit(new BigDecimal(100));
		bank.displayBalances();
		bank.payAllMonthlyBills();
		bank.displayBalances();
		
	}

}
